//
//  HYLShop.m
//  纯代码封装
//
//  Created by hyl on 16/5/1.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "HYLShop.h"

@implementation HYLShop
-(instancetype)initWithDic:(NSDictionary *)dic{
    if (self=[super init]) {
        self.name=dic[@"name"];
        self.icon=dic[@"icon"];
    }
    return self; 
}
+(instancetype)shopWithDic:(NSDictionary *)dic{
    return [[self alloc]initWithDic:dic];
}
@end
